package net.googlecode.harchenko.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: undertext
 * Date: 28.03.11
 * Time: 22:31
 * To change this template use File | Settings | File Templates.
 */

/**
 * The superClass for classes Employee, Manager, Director.
 *  Contains basic information about Person.
 */
public class Person {

    /**
     * Firstname of the Person.
     */
    private String firstName;

    /**
     * Lastname of the Person.
     */
    private String lastName;
    /**
     * Age of the Person.
     */
    private int age;
    /**
     * Rate of the Person.
     */
    private BigDecimal rate;
    /**
     * Bonus amount of the Person.
     */
    private BigDecimal bonusAmt;

    /**
     * Constructor for class.
     *
     * @param firstName Firstname of the Person.
     * @param lastName  Lastname of the Person.
     * @param age       Age of the Person.
     * @param rate      Rate of the Person.
     * @param bonusAmt  Bonus amount of the Person.
     */
    public Person(final String firstName, final String lastName, final int age,
                  final BigDecimal rate, final BigDecimal bonusAmt) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
        this.rate = rate;
        this.bonusAmt = bonusAmt;
    }

    /**
     * @return Firstname of the Person.
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * Sets Firstname of the Person.
     *
     * @param firstName Firstname of the Person.
     */
    public void setFirstName(final String firstName) {
        this.firstName = firstName;
    }

    /**
     * @return Lastname of the Person.
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * Sets Lastname of the Person.
     *
     * @param lastName Lastname of the Person.
     */
    public void setLastName(final String lastName) {
        this.lastName = lastName;
    }

    /**
     * @return Age of the Person.
     */
    public int getAge() {
        return age;
    }

    /**
     * Sets the age of the Person.
     *
     * @param age Age of the Person
     */
    public void setAge(final int age) {
        this.age = age;
    }

    /**
     * @return Rate of the Person.
     */
    public BigDecimal getRate() {
        return rate;
    }

    /**
     * Sets a rate of the Person.
     *
     * @param rate Rate of the Person.
     */
    public void setRate(final BigDecimal rate) {
        this.rate = rate;
    }

    /**
     * @return Bonus amount of the Person.
     */
    public BigDecimal getBonusAmt() {
        return bonusAmt;
    }

    /**
     * Sets Bonus amount of the Person.
     *
     * @param bonusAmt Bonus amount of the Person.
     */
    public void setBonusAmt(final BigDecimal bonusAmt) {
        this.bonusAmt = bonusAmt;
    }


}
